//load("samplecode.js");
/*var A = "var a='a';";
var B = "//=require A;var b='b';";
var C = "var c='c'";
var D = "//=require A;//=require B;//=require C;var d='d';";
var E = "//=require D; var e=a+b+c+d;"

var code = "\
//=require E\
//=require A\
\n\nalert(e == 'abcd')"
*/
importPackage( java.io );
importPackage( java.net );
importPackage( java.util );
importPackage( java.lang );


var buildconfig = {
	ApplicationFolderName : "TurtleCanvas",
	LoadPaths : ["TurtleCanvas", "TurtleCanvas/controls", "TurtleCanvas/libs", "TurtleCanvas/config"],
	OutputSourcePath : "TurtleCanvas/cdn/src/TurtleCanvas.js"
};

var outputPath = "cdn/src/" + buildconfig.ApplicationFolderName + ".js";
var compressedPath = "cdn/src/" + buildconfig.ApplicationFolderName + ".min.js";

dir = new File("TurtleCanvas/");
listDir = dir.listFiles();
for (var i = 0; i < listDir.length; i++) {
    if (listDir[i].isDirectory() && (listDir[i].getName().indexOf(".svn") < 0)) {
            System.out.println(listDir[i].getName());
    }
}



